package com.tianxiabuyi.model.pojo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

/**
 * 问卷<br>
 * @author yangh
 */
@Entity
@Table(name = "survey")
public class Survey extends TXBYObject {
	private String title;      // 问卷标题
	private Integer category;  // 问卷分类
	@Column(name="dept_id")@JSONField(name = "dept_id")
	private Integer deptId;	   // 所属科室
	private String belong;     // 随访归属
	private String detail;     // 描述
	private Integer enable;    // 是否启用
	@Transient
	private List<SurveyQuestion> quests = new ArrayList<SurveyQuestion>(); // 问题列表
	@Transient
	private List<SurveyScore> scores = new ArrayList<SurveyScore>(); // 问题的分段
	
	public String getBelong() {
		return belong;
	}

	public void setBelong(String belong) {
		this.belong = belong;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public void setScores(List<SurveyScore> scores) {
		this.scores = scores;
	}

	public List<SurveyScore> getScores() {
		return scores;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public Integer getCategory() {
		return category;
	}
	
	public void setCategory(Integer category) {
		this.category = category;
	}

	public List<SurveyQuestion> getQuests() {
		return quests;
	}

	public void setQuests(List<SurveyQuestion> quests) {
		this.quests = quests;
	}
}